<html>
<head><meta charset="utf-8"><title>x.py incantation to build r-a? · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html">x.py incantation to build r-a?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="227108646"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/x.py%20incantation%20to%20build%20r-a%3F/near/227108646" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html#227108646">(Feb 20 2021 at 18:24)</a>:</h4>
<p>I found out today that the <code>try</code> build builds more than I was manually building, <a href="https://github.com/rust-lang-ci/rust/runs/1941338110#step:24:13126">since I got a failure in r-a</a>.</p>
<p>Is there a way to build it specifically? I would have guessed <code>python x.py build src\tools\rust-analyzer</code>, but that just tells me</p>
<div class="codehilite"><pre><span></span><code>thread &#39;main&#39; panicked at &#39;error: no rules matched src\tools\rust-analyzer&#39;, src\bootstrap\builder.rs:243:17
</code></pre></div>



<a name="227108693"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/x.py%20incantation%20to%20build%20r-a%3F/near/227108693" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html#227108693">(Feb 20 2021 at 18:25)</a>:</h4>
<blockquote>
<p>the trait <code>FromResidual&lt;std::result::Result&lt;!, _&gt;&gt;</code> is not implemented for <code>std::option::Option&lt;()&gt;</code></p>
</blockquote>
<p>Hmm</p>



<a name="227108753"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/x.py%20incantation%20to%20build%20r-a%3F/near/227108753" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html#227108753">(Feb 20 2021 at 18:26)</a>:</h4>
<p>This is my prototype implementation for <a href="https://github.com/rust-lang/rfcs/issues/3058">RFC#3058</a>, so failures like that are definitely caused by my PR.  I just want to repro locally.</p>



<a name="227108761"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/x.py%20incantation%20to%20build%20r-a%3F/near/227108761" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html#227108761">(Feb 20 2021 at 18:26)</a>:</h4>
<p>Maybe you could try building RA itself?</p>



<a name="227108764"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/x.py%20incantation%20to%20build%20r-a%3F/near/227108764" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html#227108764">(Feb 20 2021 at 18:26)</a>:</h4>
<p>It seems easier than messing with <code>x.py</code></p>



<a name="227108793"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/x.py%20incantation%20to%20build%20r-a%3F/near/227108793" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html#227108793">(Feb 20 2021 at 18:27)</a>:</h4>
<p>Clone <a href="https://github.com/rust-analyzer/rust-analyzer/">https://github.com/rust-analyzer/rust-analyzer/</a> and run <code>cargo check</code></p>



<a name="227108998"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/x.py%20incantation%20to%20build%20r-a%3F/near/227108998" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html#227108998">(Feb 20 2021 at 18:31)</a>:</h4>
<p><span class="user-mention" data-user-id="125270">@scottmcm</span> x.py dist rust-analyzer</p>



<a name="227109313"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/x.py%20incantation%20to%20build%20r-a%3F/near/227109313" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html#227109313">(Feb 20 2021 at 18:36)</a>:</h4>
<p>Ah, thanks <span class="user-mention" data-user-id="116122">@simulacrum</span> -- I'd tried <code>dist src\tools\rust-analyzer</code> but not just <code>dist rust-analyzer</code>.</p>
<p><span class="user-mention" data-user-id="203546">@Laurențiu Nicola</span> I think it'd have to be <code>cargo +stage1 check</code> or something, so I prefer triggering with x.py if I can.  Definitely for more normal r-a stuff I'd go that way, though.</p>



<a name="227109437"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/x.py%20incantation%20to%20build%20r-a%3F/near/227109437" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html#227109437">(Feb 20 2021 at 18:38)</a>:</h4>
<p>Ah, I was used to do <code>rustup toolchain link</code> on the resulting compiler</p>



<a name="227109744"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/x.py%20incantation%20to%20build%20r-a%3F/near/227109744" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/x.2Epy.20incantation.20to.20build.20r-a.3F.html#227109744">(Feb 20 2021 at 18:44)</a>:</h4>
<p>Ah, and I needed <code>extended = true</code> in my config.toml</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>